package com.jidong.test_springboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
@TableName("t_user_role")
public class UserRole {
	@TableId
	private int id;
	@TableField(value="user_id")
	private int userId;
	@TableField(value="role_id")
	private int roleId;
	
	public UserRole(int userId,int roleId) {
		this.roleId=roleId;
		this.userId=userId;
	}
}
